package day11;

import java.util.Scanner;


public class Test {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        StringBuilder s = new StringBuilder(sc.nextLine());
        s.append("hah1");
        int a=0,b=0,c=0,d=0;
        for (int i = 0; i < s.length(); i++) {
            char charAt = s.charAt(i);

            if ((charAt >= 'a' && charAt <= 'z') || (charAt >= 'A' && charAt <= 'Z')) a++;
            else if (charAt >= '0' && charAt <= '9') b++;
            else if (charAt == ' ') c++;
            else d++;
        }
        System.out.println("字母个数："+a);
        System.out.println("数字个数："+b);
        System.out.println("空格个数："+c);
        System.out.println("其他字符个数："+d);
    }
}
